<h1>Welcome to the <%=h @exam.title %> exam</h1>
<% form_tag(:action => "submit_exam", :id => @exam.id)do %>
	<% for question in @exam.questions %>
	<p>
		<%=parse_images h question.text %>
		<br/>
		<% for answer in question.answers %>
			<% if question.checkbox == 1 %>
				<%= display_check(answer) %>
			<% else %>
				<%= display_radio(answer) %>
			<% end %>
		<% end %>
	</p>
	<% end %>
	<%= submit_tag "Submit" %>
<% end %>
